package cn.blossoming.service.base.exception;

public class ServiceException extends BaseException {

    private Object data;

    public ServiceException(String message) {
        super(-1, message);
    }


    public ServiceException(int code, String message) {
        super(code, message);
    }

    public ServiceException(int code, String message, Object data) {
        super(code, message);
        this.data = data;
    }

    public ServiceException(int code, String message, Throwable cause) {
        super(code, message, cause);
    }

    public ServiceException(int code, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(code, message, cause, enableSuppression, writableStackTrace);
    }

    public ServiceException(String message, Throwable cause) {
        super(-1, message, cause);
    }

    public Object getData() {
        return data;
    }
}
